<?php
if(isset($_GET[task])&& "toUpdateProd"==$_GET[task]&& isset($_GET[prodid])&& !empty($_GET[prodid])){
	require_once("action/checkAamsLogin.php");
	require_once("action/smarty_inc.php");
	require_once("action/mysql.class.php");

	$info = getObject("`prod` where id='$_GET[prodid]'",$db);
	$smarty->assign("info",$info);

	$typelist = getList("prodtype order by seq",$db);
	$smarty->assign("typelist", $typelist);

	$smarty->assign("cpage",$_GET[page]);

	$smarty->display("editprod.html");
}else{
	echo "<script>window.history.back();</script>";
	exit;
}
?>
